<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/10
 * Time: 16:31
 */

namespace app\index\service;


use think\Db;

class BannerService
{
    public static function banner_pictures($data){
        $merdata = [
            'state'         =>0,
            'create_time'  =>date('Y-m-d H:i:s'),
            'update_time'  =>date('Y-m-d H:i:s'),
        ];
        $insert_data = array_merge($data,$merdata);
        $banner_pictures_id = Db::table('banner_pictures')
            ->insertGetId($insert_data);
        return $banner_pictures_id;

    }
}